import React, {Component} from 'react'
import Ant from './ant'

class Enter  extends Component {
     state ={
          show:false
     }
     
    render(){
     
        return (
            <div className="enter-box">
               <div className="logo">
                    <span className="iconfont icon-wangyiyunyinle"></span>
               </div>
               <div className="btns" style={{display:this.state.show ? 'none' : 'block' }}>
                    <button onClick={_=>this.setState({show:true})}>手机号登录</button>
                    <button>立即体验</button>
               </div>
               <Ant name={ this.state.show}></Ant>
               
               {/* <div className="ipts" style={{display:this.state.show ? 'block' : 'none' }}>
                    <input placeholder="请输入手机号" id="phone"></input>
                    <input  placeholder="请输入密码" id="password"></input>
                    <div className="ipts-c">
                         <span><input type="checkbox" />自动登录 </span>
                         <span>忘记密码</span>
                    </div>
                    <div className="ipts-deng">
                         <span className="iconfont icon-houtui" onClick={_=>this.props.history.push('/login')}></span>
                         <button>登录</button>
                    </div>
                    
                    <span className="reg">注册账户</span>
               </div> */}
               
               <div className="bottom">
                   <div>
                        <span className="iconfont icon-weixin"></span>
                   </div>
                   <div>
                        <span className="iconfont icon-icon363601"></span>
                   </div>
                   <div>
                        <span className="iconfont icon-weibo"></span>
                   </div>
                   <div>
                        <span className="iconfont icon-yi"></span>
                   </div>
               </div>
               <div className="text">
                   <p><input type="checkbox" />同意《用户协议》《隐私政策》《儿童隐私政策》</p>
                   <p>《中国联通认证服务协议》</p>
               </div>
            </div>
        )
    }
}
export default Enter 